<div id="link_print">
	<a href="javaScript:window.print()">
		<img src="/img/actions/print.png" title="Imprimir etiquetas" alt="Imprimir etiquetas">
	</a>
</div>
<?php $i = 1;
	foreach ($etiquetas['Livro'] as $item){
		if($item){
			echo "<div class=etiqueta>";
				$data = "L".$livro['Assunto1']['codigo_prefix'].$livro['Livro']['codigo'].$i;
				echo "<span class=etiqueta>" . $data . "</span><br>";
			echo "</div>";
			echo "<div class=etiqueta>";
				$this->BarCode->barcode();
				$this->BarCode->setType('C39');
				$this->BarCode->setCode($data);
				$this->BarCode->setSize(80, 180);
				$this->BarCode->writeBarCodeFile('img/barcode/'.$data.'.png');
				echo $this->Html->image('barcode/'.$data.'.png');
			echo "</div>";
		}
		$i++;
	}
?>